package com.sugon.dao;

import com.sugon.entity.EnergyDevRepairRecord;
import com.sugon.modules.device.model.vo.DevRepairRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 维修记录单Dao
 *
 * @author sugon
 * @date 2019-07-18 11:39:51
 */
public interface EnergyDevRepairRecordDao extends BaseDao<EnergyDevRepairRecord> {

    /**
     * 获取指定工单的维修记录
     *
     * @param ticketId 工单ID
     * @return
     */
    EnergyDevRepairRecord queryByTicketId(@Param("ticketId") String ticketId);

    /**
     * 获取设备维修记录，包含更换的备件信息
     *
     * @param devId
     * @return
     */
    List<DevRepairRecordVO> loadDevRepairRecord(@Param("devId") String devId);
}
